#ifndef GPS_H
#define GPS_H

extern volatile unsigned char have_fix;

typedef struct{
	unsigned char header;  //1
	float lat;			   //4  5
	float lon;			   //4  9
	unsigned char speed;   //1 10
	unsigned short heading;//2 12
	unsigned char date[6]; //6 14
	unsigned char time[6]; //6 20
	//unsigned short alt;	   //2 22 -- 22 is important because it's a factor of 528 -- our page size

}gps_log;

void process_gpgga();
void process_gprmc();

#endif
